<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>

						<script type="text/html" id="tpl-empty"></script>

						<script type="text/html" id="tpl-num1">
							<div data-bind="foreach:itemList,css:'itemlist-'+itemList().length">
								<div class="sumBtn_list clear">
									<div class="sumBtn_left">
										<span class="name" data-bind="text:name,visible:name!==''">&nbsp;</span>
										<div class="fleft" data-bind="foreach:range">
											<span class="num-box"><a href="#" data-bind="css:(checked()?'active':'')+' num num-'+name,click:$parents[1].numChecked.bind($data,$parent)"><font data-bind="html:name"></font></a><i data-bind="html:times"></i></span>
										</div>
									</div>
									<div class="sumBtn_righr">
										<a href="#" title="全" class="allBtn" data-bind="click:$parent.quickChecked.bind($data,1)">全</a>
										<a href="#" title="大" class="bigBtn" data-bind="click:$parent.quickChecked.bind($data,2)">大</a>
										<a href="#" title="小" class="smallBtn" data-bind="click:$parent.quickChecked.bind($data,3)">小</a>
										<a href="#" title="单" class="oddBtn" data-bind="click:$parent.quickChecked.bind($data,4)">单</a>
										<a href="#" title="双" class="evenBtn" data-bind="click:$parent.quickChecked.bind($data,5)">双</a>
										<a href="#" title="清" class="delBtn" data-bind="click:$parent.quickChecked.bind($data,0)">清</a>
									</div>
								</div>
							</div>
						</script>

						<script type="text/html" id="tpl-num2">
							<div data-bind="foreach:itemList,css:'itemlist-'+itemList().length">
								<div class="sumBtn_list clear">
									<div class="sumBtn_left">
										<span class="name" data-bind="text:name,visible:name!==''">&nbsp;</span>
										<div class="fleft" data-bind="foreach:range">
											<span class="num-box"><a href="#" data-bind="html:name,css:(checked()?'active':'')+' ball',click:$parents[1].numChecked.bind($data,$parent)"></a><i data-bind="html:times">&nbsp;</i></span>
										</div>
									</div>
									<div class="sumBtn_righr">
										<a href="#" title="全" class="allBtn" data-bind="click:$parent.quickChecked.bind($data,1)">全</a>
										<a href="#" title="清" class="delBtn" data-bind="click:$parent.quickChecked.bind($data,0)">清</a>
									</div>
								</div>
							</div>
						</script>

						<script type="text/html" id="tpl-num3">
							<div data-bind="foreach:itemList,css:'itemlist-'+itemList().length">
								<div class="sumBtn_list clear">
									<div class="sumBtn_left">
										<div>
											<span class="name" data-bind="text:name,visible:name!==''">&nbsp;</span>
											<div class="fleft" data-bind="foreach:range">
												<span class="Bbtn num-box-2"><a href="#" data-bind="html:name,css:(checked()?'active':'')+' text',click:$parents[1].numChecked.bind($data,$parent)"></a><i data-bind="html:times">&nbsp;</i></span>
											</div>
										</div>
										<div>
											<div class="fleft" style="color:#fff;text-align:center">
												<span class="num-box num-box-2" data-bind="text:$root.ComputedOdds(0)">&nbsp;</span>
												<span class="num-box num-box-2" data-bind="text:$root.ComputedOdds(1)">&nbsp;</span>
												<span class="num-box num-box-2" data-bind="text:$root.ComputedOdds(2)">&nbsp;</span>
												<span class="num-box num-box-2" data-bind="text:$root.ComputedOdds(3)">&nbsp;</span>
												<span class="num-box num-box-2" data-bind="text:$root.ComputedOdds(4)">&nbsp;</span>
												<span class="num-box num-box-2" data-bind="text:$root.ComputedOdds(5)">&nbsp;</span>
											</div>
										</div>
									</div>
									<div class="sumBtn_righr">
										<a href="#" title="全" class="allBtn" data-bind="click:$parent.quickChecked.bind($data,1)">全</a>
										<a href="#" title="清" class="delBtn" data-bind="click:$parent.quickChecked.bind($data,0)">清</a>
									</div>
								</div>
							</div>
						</script>

						<script type="text/html" id="tpl-num3-1">
							<div data-bind="foreach:itemList,css:'itemlist-'+itemList().length">
								<div class="sumBtn_list clear">
									<div class="sumBtn_left">
										<div>
											<span class="name" data-bind="text:name,visible:name!==''">&nbsp;</span>
											<div class="fleft" data-bind="foreach:range">
												<span class="num-box num-box-1" ><a href="#" data-bind="css:(checked()?'active':'')+' num num-'+name,click:$parents[1].numChecked.bind($data,$parent)"><font data-bind="html:name"></font></a><i data-bind="html:times">&nbsp;</i></span>
											</div>
										</div>
										<div>
											<div class="fleft" style="text-align:center;color:#fff">
												<span class="num-box num-box-1" data-bind="text:$root.ComputedOdds(0)">&nbsp;</span>
												<span class="num-box num-box-1" data-bind="text:$root.ComputedOdds(1)">&nbsp;</span>
												<span class="num-box num-box-1" data-bind="text:$root.ComputedOdds(2)">&nbsp;</span>
												<span class="num-box num-box-1" data-bind="text:$root.ComputedOdds(3)">&nbsp;</span>
												<span class="num-box num-box-1" data-bind="text:$root.ComputedOdds(2)">&nbsp;</span>
												<span class="num-box num-box-1" data-bind="text:$root.ComputedOdds(1)">&nbsp;</span>
												<span class="num-box num-box-1" data-bind="text:$root.ComputedOdds(0)">&nbsp;</span>
											</div>
										</div>
									</div>
									<div class="sumBtn_righr">
										<a href="#" title="全" class="allBtn" data-bind="click:$parent.quickChecked.bind($data,1)">全</a>
										<a href="#" title="大" class="bigBtn" data-bind="click:$parent.quickChecked.bind($data,2)">大</a>
										<a href="#" title="小" class="smallBtn" data-bind="click:$parent.quickChecked.bind($data,3)">小</a>
										<a href="#" title="单" class="oddBtn" data-bind="click:$parent.quickChecked.bind($data,4)">单</a>
										<a href="#" title="双" class="evenBtn" data-bind="click:$parent.quickChecked.bind($data,5)">双</a>
										<a href="#" title="清" class="delBtn" data-bind="click:$parent.quickChecked.bind($data,0)">清</a>
									</div>
								</div>
							</div>
						</script>

						<script type="text/html" id="tpl-num4">
							<div data-bind="foreach:itemList">
								<div class="sumBtn_list clear">
									<div class="sumBtn_list_kl8">
										<span class="name" data-bind="text:name,visible:name!==''">&nbsp;</span>
										<div class="fleft" data-bind="foreach:range">
											<span class="num-box"><a href="#" data-bind="css:(checked()?'active':'')+' num num-'+name,click:$parents[1].numChecked.bind($data,$parent)"><font data-bind="html:name"></font></a><i data-bind="html:times">&nbsp;</i></span>
										</div>
									</div>
								</div>
							</div>
						</script>

						<script type="text/html" id="tpl-num5">
							<div data-bind="foreach:itemList,css:'itemlist2-'+itemList().length">
								<div class="sumBtn_list clear">
									<div class="sumBtn_left">
										<span class="name" data-bind="text:name,visible:name!==''">&nbsp;</span>
										<div class="fleft" data-bind="foreach:range">
											<span class="Bbtn"><a href="#" data-bind="html:name,css:(checked()?'active':'')+' text',click:$parents[1].numChecked.bind($data,$parent)"></a><i data-bind="html:times">&nbsp;</i></span>
										</div>
									</div>
									<div class="sumBtn_righr">
										<a href="#" title="全" class="allBtn" data-bind="click:$parent.quickChecked.bind($data,1)">全</a>
										<a href="#" title="清" class="delBtn" data-bind="click:$parent.quickChecked.bind($data,0)">清</a>
									</div>
								</div>
							</div>
						</script>

						<script type="text/html" id="tpl-num5-1">
							<div data-bind="foreach:itemList,css:'itemlist3-'+itemList().length">
								<div class="sumBtn_list clear">
									<div class="sumBtn_left">
										<div class="clear">
											<span class="name" data-bind="text:name,visible:name!==''">&nbsp;</span>
											<div class="fleft" data-bind="foreach:range">
												<span class="Bbtn2"><a href="#" data-bind="css:(checked()?'active':'')+' text',click:$parents[1].numChecked.bind($data,$parent)"><font data-bind="html:name"></font></a><i data-bind="html:times">&nbsp;</i></span>
											</div>
										</div>
										<div class="clear">
											<span></span>
											<div class="fleft">
												<span class="Bbtn2-odds" data-bind="text:$root.ComputedOdds(0)"></span>
												<span class="Bbtn2-odds" data-bind="text:$root.ComputedOdds(1)"></span>
												<span class="Bbtn2-odds" data-bind="text:$root.ComputedOdds(2)"></span>
											</div>
										</div>
									</div>
									<div class="sumBtn_righr">
										<a href="#" title="全" class="allBtn" data-bind="click:$parent.quickChecked.bind($data,1)">全</a>
										<a href="#" title="清" class="delBtn" data-bind="click:$parent.quickChecked.bind($data,0)">清</a>
									</div>
								</div>
							</div>
						</script>

						<script type="text/html" id="tpl-num6">
							<div data-bind="foreach:itemList,css:'itemlist-'+itemList().length ">
								<div class="sumBtn_list clear">
									<div class="sumBtn_left">
										<span class="name" data-bind="text:name,visible:name!==''">&nbsp;</span>
										<div class="fleft" data-bind="foreach:range">
											<span class="Bbtn"><a href="#" data-bind="html:name,css:(checked()?'active':'')+' text',click:$parents[1].numChecked.bind($data,$parent)">&nbsp;</a><i data-bind="html:times">&nbsp;</i></span>
										</div>
									</div>
								</div>
							</div>
						</script>

						<script type="text/html" id="tpl-num7">
							<div class="clear sumBtn_list_jsk3 sumBtn_list">
								<div class="sumBtn_left" style="text-align:center">
									<div data-bind="foreach:itemList">
									   <div class="clear">
											<span class="name" data-bind="text:name,visible:name!==''">&nbsp;</span>
											<div class="fleft" data-bind="foreach:range">
												<span class="num-box"><a href="#" style="float:none;display:inline-block" data-bind="css:(checked()?'active':'')+' num num-'+name,click:$parents[1].numChecked"><font data-bind="html:name"></font></a><i data-bind="html:times">&nbsp;</i></span>
											</div>
										</div>
									</div>
									<div class="clear">
										<span class="name" style="display:none">&nbsp;</span>
										<div class="fleft" style="color:#fff;">						
											<span class="num-box" data-bind="text:$root.ComputedOdds(0,'x')">&nbsp;</span>
											<span class="num-box" data-bind="text:$root.ComputedOdds(1,'x')">&nbsp;</span>
											<span class="num-box" data-bind="text:$root.ComputedOdds(2,'x')">&nbsp;</span>
											<span class="num-box" data-bind="text:$root.ComputedOdds(3,'x')">&nbsp;</span>
											<span class="num-box" data-bind="text:$root.ComputedOdds(4,'x')">&nbsp;</span>
											<span class="num-box" data-bind="text:$root.ComputedOdds(5,'x')">&nbsp;</span>
											<span class="num-box" data-bind="text:$root.ComputedOdds(6,'x')">&nbsp;</span>
											<span class="num-box" data-bind="text:$root.ComputedOdds(7,'x')">&nbsp;</span>
										</div>
									</div>
								</div>
								<div class="sumBtn_righr">
									<a href="#" title="小" class="smallBtn" data-bind="click:quickChecked.bind($data,'kuai3_0')">小</a>
									<a href="#" title="大" class="bigBtn" data-bind="click:quickChecked.bind($data,'kuai3_1')">大</a>
									<a href="#" title="单" class="oddBtn" data-bind="click:quickChecked.bind($data,'kuai3_2')">单</a>
									<a href="#" title="双" class="evenBtn" data-bind="click:quickChecked.bind($data,'kuai3_3')">双</a>
									<a href="#" title="清" class="delBtn" data-bind="click:quickChecked.bind($data,'kuai3_4')">清</a>
								</div>
							</div>
						</script>

						<script type="text/html" id="tpl-danshi1">
							<div class="selector-box">
								<div class="selector-con clear">
									<textarea data-bind="textinput:textarea"></textarea>
									<div class="fleft">
										<a href="#" data-bind="click:unique" class="btn DeleteDuplicate" title="删除重复号"></a>
										<a href="#" class="btn Import" title="导入文件" style="overflow:hidden;cursor:pointer" data-bind="swfReadFile:'static/swf/readFile.swf'"></a>
										<a href="#" data-bind="click:reset" class="btn Empty" title="清空"></a>
									</div>
								</div>
								<div class="tips" data-bind="html:CONFIG.inputTip"></div>
							</div>
						</script>

						<script type="text/html" id="tpl-danshi2">
							<div class="selector-box selector-box2">
								<div class="selector-con clear">
									<div class="con-toolbar clear">
										<span>选择位置：</span>
										<span>
											<label class="checkbox" data-bind="css:ko.utils.arrayIndexOf(posChecked(),'4')>-1?'checkbox-checked':''" for="ds-ck-5"><input type="checkbox" id="ds-ck-5" value="4" data-bind="checked:posChecked" class="checkbox-hide" />万</label>
											<label class="checkbox" data-bind="css:ko.utils.arrayIndexOf(posChecked(),'3')>-1?'checkbox-checked':''" for="ds-ck-4"><input type="checkbox" id="ds-ck-4" value="3" data-bind="checked:posChecked" class="checkbox-hide" />千</label>
											<label class="checkbox" data-bind="css:ko.utils.arrayIndexOf(posChecked(),'2')>-1?'checkbox-checked':''" for="ds-ck-3"><input type="checkbox" id="ds-ck-3" value="2" data-bind="checked:posChecked" class="checkbox-hide" />百</label>
											<label class="checkbox" data-bind="css:ko.utils.arrayIndexOf(posChecked(),'1')>-1?'checkbox-checked':''" for="ds-ck-2"><input type="checkbox" id="ds-ck-2" value="1" data-bind="checked:posChecked" class="checkbox-hide" />十</label>
											<label class="checkbox" data-bind="css:ko.utils.arrayIndexOf(posChecked(),'0')>-1?'checkbox-checked':''" for="ds-ck-1"><input type="checkbox" id="ds-ck-1" value="0" data-bind="checked:posChecked" class="checkbox-hide" />个</label>
										</span>
										<span class="toolbar-tips">( 温馨提示：你选择了 <label data-bind="text:posCheckedCount">&nbsp;</label> 个位置，系统会自动根据位置组合成 <label data-bind="text:posCombCount">&nbsp;</label> 个方案  )</span>
									</div>
									<textarea data-bind="textinput:textarea"></textarea>
									<div class="fleft">
										<a href="#" class="btn DeleteDuplicate" data-bind="click:unique" title="删除重复号"></a>
										<a href="#" class="btn Import" title="导入文件" style="overflow:hidden;cursor:pointer" data-bind="swfReadFile:'/Res/swf/readFile.swf'"></a>
										<a href="#" class="btn Empty" data-bind="click:reset" title="清空"></a>
									</div>
								</div>
								<div class="tips" data-bind="html:CONFIG.inputTip"></div>
							</div>
						</script>

						<script type="text/html" id="tpl-hezhi1">
							<div data-bind="foreach:itemList,css:'itemlist1-'+itemList().length">
								<div class="sumBtn_list clear">
									<div class="sumBtn_left">
										<span class="name" data-bind="text:name,visible:name!==''">&nbsp;</span>
										<div class="fleft" data-bind="foreach:range">
											<span class="num-box"><a href="#" data-bind="css:(checked()?'active':'')+' num num-'+name,click:$parents[1].numChecked.bind($data,$parent)"><font data-bind="html:name"></font></a><i data-bind="html:times">&nbsp;</i></span>
										</div>
									</div>
								</div>
							</div>
						</script>

						<script type="text/html" id="tpl-hezhi2">
							<div class="selector-box4">
								<div class="selector-con clear">
									<div class="con-toolbar clear">
										<span>选择位置：</span>
										<span>
											<label class="checkbox" data-bind="css:ko.utils.arrayIndexOf(posChecked(),'4')>-1?'checkbox-checked':''" for="ds-ck-5"><input type="checkbox" id="ds-ck-5" value="4" data-bind="checked:posChecked" class="checkbox-hide" />万</label>
											<label class="checkbox" data-bind="css:ko.utils.arrayIndexOf(posChecked(),'3')>-1?'checkbox-checked':''" for="ds-ck-4"><input type="checkbox" id="ds-ck-4" value="3" data-bind="checked:posChecked" class="checkbox-hide" />千</label>
											<label class="checkbox" data-bind="css:ko.utils.arrayIndexOf(posChecked(),'2')>-1?'checkbox-checked':''" for="ds-ck-3"><input type="checkbox" id="ds-ck-3" value="2" data-bind="checked:posChecked" class="checkbox-hide" />百</label>
											<label class="checkbox" data-bind="css:ko.utils.arrayIndexOf(posChecked(),'1')>-1?'checkbox-checked':''" for="ds-ck-2"><input type="checkbox" id="ds-ck-2" value="1" data-bind="checked:posChecked" class="checkbox-hide" />十</label>
											<label class="checkbox" data-bind="css:ko.utils.arrayIndexOf(posChecked(),'0')>-1?'checkbox-checked':''" for="ds-ck-1"><input type="checkbox" id="ds-ck-1" value="0" data-bind="checked:posChecked" class="checkbox-hide" />个</label>
										</span>
										<span class="toolbar-tips">( 温馨提示：你选择了 <label data-bind="text:posCheckedCount">&nbsp;</label> 个位置，系统会自动根据位置组合成 <label data-bind="text:posCombCount">&nbsp;</label> 个方案  )</span>
									</div>
								</div>
								<div data-bind="foreach:itemList">
									<div class="sumBtn_list clear">
										<div class="sumBtn_left">
											<span class="name" data-bind="text:name,visible:name!==''">&nbsp;</span>
											<div class="fleft" data-bind="foreach:range">
												<span class="num-box"><a href="#" data-bind="css:(checked()?'active':'')+' num num-'+name,click:$parents[1].numChecked"><font data-bind="html:name"></font></a><i data-bind="html:times">&nbsp;</i></span>
											</div>
										</div>
									</div>
								</div>
							</div>
						</script>

						<script type="text/html" id="tpl-renxuan1">
							<div class="selector-box3">
								<div class="selector-con clear">
									<div class="con-toolbar clear">
										<span>选择位置：</span>
										<span>
											<label class="checkbox" data-bind="css:ko.utils.arrayIndexOf(posChecked(),'4')>-1?'checkbox-checked':''" for="ds-ck-5"><input type="checkbox" id="ds-ck-5" value="4" data-bind="checked:posChecked" class="checkbox-hide" />万</label>
											<label class="checkbox" data-bind="css:ko.utils.arrayIndexOf(posChecked(),'3')>-1?'checkbox-checked':''" for="ds-ck-4"><input type="checkbox" id="ds-ck-4" value="3" data-bind="checked:posChecked" class="checkbox-hide" />千</label>
											<label class="checkbox" data-bind="css:ko.utils.arrayIndexOf(posChecked(),'2')>-1?'checkbox-checked':''" for="ds-ck-3"><input type="checkbox" id="ds-ck-3" value="2" data-bind="checked:posChecked" class="checkbox-hide" />百</label>
											<label class="checkbox" data-bind="css:ko.utils.arrayIndexOf(posChecked(),'1')>-1?'checkbox-checked':''" for="ds-ck-2"><input type="checkbox" id="ds-ck-2" value="1" data-bind="checked:posChecked" class="checkbox-hide" />十</label>
											<label class="checkbox" data-bind="css:ko.utils.arrayIndexOf(posChecked(),'0')>-1?'checkbox-checked':''" for="ds-ck-1"><input type="checkbox" id="ds-ck-1" value="0" data-bind="checked:posChecked" class="checkbox-hide" />个</label>
										</span>
										<span class="toolbar-tips">( 温馨提示：你选择了 <label data-bind="text:posCheckedCount">&nbsp;</label> 个位置，系统会自动根据位置组合成 <label data-bind="text:posCombCount">&nbsp;</label> 个方案  )</span>
									</div>
								</div>
								<div data-bind="foreach:itemList">
									<div class="sumBtn_list clear">
										<div class="sumBtn_left">
											<span class="name" data-bind="text:name,visible:name!==''">&nbsp;</span>
											<div class="fleft" data-bind="foreach:range">
												<span class="num-box"><a href="#" data-bind="css:(checked()?'active':'')+' num num-'+name,click:$parents[1].numChecked"><font data-bind="html:name"></font></a><i data-bind="html:times">&nbsp;</i></span>
											</div>
										</div>
										<div class="sumBtn_righr">
											<a href="#" title="全" class="allBtn" data-bind="click:$parent.quickChecked.bind($data,1)">全</a>
											<a href="#" title="大" class="bigBtn" data-bind="click:$parent.quickChecked.bind($data,2)">大</a>
											<a href="#" title="小" class="smallBtn" data-bind="click:$parent.quickChecked.bind($data,3)">小</a>
											<a href="#" title="单" class="oddBtn" data-bind="click:$parent.quickChecked.bind($data,4)">单</a>
											<a href="#" title="双" class="evenBtn" data-bind="click:$parent.quickChecked.bind($data,5)">双</a>
											<a href="#" title="清" class="delBtn" data-bind="click:$parent.quickChecked.bind($data,0)">清</a>
										</div>
									</div>
								</div>
							</div>
						</script>

						<script type="text/html" id="tpl-dantuo">
							<div data-bind="foreach:itemList,css:'itemlist-'+itemList().length">
								<div class="sumBtn_list clear">
									<div class="sumBtn_left">
										<span class="name" data-bind="text:name,visible:name!==''">&nbsp;</span>
										<div class="fleft" data-bind="foreach:range">
											
											<span class="num-box"><a href="#" data-bind="css:(checked()?'active':'')+' num num-'+name,click:$parents[1].numChecked.bind($data,$parent)"><font data-bind="html:name"></font></a><i data-bind="html:times"></i></span>
										</div>
									</div>
									<div class="sumBtn_righr" data-bind="if:$index()>0">
										<a href="#" title="全" class="allBtn" data-bind="click:$parent.quickChecked.bind($data,1)">全</a>
										<a href="#" title="大" class="bigBtn" data-bind="click:$parent.quickChecked.bind($data,2)">大</a>
										<a href="#" title="小" class="smallBtn" data-bind="click:$parent.quickChecked.bind($data,3)">小</a>
										<a href="#" title="单" class="oddBtn" data-bind="click:$parent.quickChecked.bind($data,4)">单</a>
										<a href="#" title="双" class="evenBtn" data-bind="click:$parent.quickChecked.bind($data,5)">双</a>
										<a href="#" title="清" class="delBtn" data-bind="click:$parent.quickChecked.bind($data,0)">清</a>
									</div>
								</div>
							</div>
						</script>

						<script type="text/html" id="tpl-login">
							<form autocomplete="off">
								<div class="login-area">
									<div class="label-parent">
										<input class="input_tip" name="username" tag="input" type="text" id="LOGIN-1" placeholder="请输入账号" maxlength="32" />
										<label class="label_tip" for="LOGIN-1">请输入账号</label>
									</div>
									<div class="label-parent">
										<input class="input_tip" name="password" tag="input" type="password" id="LOGIN-2" placeholder="请输入密码" maxlength="20" />
										<label class="label_tip" for="LOGIN-2">请输入密码</label>
									</div>
									<div class="label-parent">
										<input type="text" name="code" tag="input" class="input_tip input_tip_45" id="LOGIN-3" placeholder="请输入验证码" maxlength="6" />
										<label class="label_tip" for="LOGIN-3">请输入验证码</label>
										<img style="background-color:white;" src="{U('api/common/secode')}" alt="点击切换验证码" title="点击切换验证码" />
									</div>
									<div class="label-parent" style="text-align:left;"></div>
								</div>
							</form>
						</script>
					</div>
					
					<div id="stopSellingPop" class="stop_selling" style="display:none;">
						<div class="stop_selling_title"></div>
					</div>
				</div>
			</div>
			<div class="side_news">
				<div class="sn_in">
					<div class="sn_h black_bg">即时资讯</div>
					<div class="sn_c" style="color:#fff" id="NOTICE-BOX"></div>
				</div>
			</div>
		</div>

		<div class="ui-ww-box ui-ww-box1" style="position:absolute;right:0;top:80px">
			

		</div>
		<!--如果未登录的用户，没有的cookie中拿不到的一些变量-->
		<input type="hidden" value="415468" id="companyId" />

		
		<script type="text/html" id="ORDER-LOG">
			<div class="clear">
				<p>注单编号：<span data-bind="text:Ordernumber"></span></p>
				<p><span data-bind="text:gamename+'【'+GamePlayName()+'】'+NumberOfPeriod()+'期'">&nbsp;</span></p>
			</div>
			<div class="clear">
				<span>投注：</span>
				<span class="break-wrod" style="display:inline-block;" data-bind="text:Content().length>500?(Content().slice(0,500)+'...'):Content">&nbsp;</span>
			</div>
			<div class="clear">
				<span class="fleft">扣款：<font class="fc_green">-<label data-bind="text:Amount()">&nbsp;</label>元</font></span>
				<span class="fright" data-bind="text:total">&nbsp;</span>
			</div>
			<div class="clear">
				<span class="fleft">返点：<font class="fc_pink"><label data-bind="text:KickbackAmount">&nbsp;</label>元</font></span>
				<span class="fright">（扣款*<label data-bind="text:KickbackPercent">&nbsp;</label>%）</span>
			</div>
			<div class="clear">
				<span>奖金：<font class="fc_yellow" data-bind="text:(BettingBalance()-0>0?BettingBalance():0)+'元'">&nbsp;</font></span>
			</div>
		</script>
		
		<script type="text/html" id="ORDER-FULL-DETAIL">
			<div class="popup">
				<div class="popup-body">
					<div class="bet-info">
						<div class="bet-top">
							<div class="clear">
								<ul class="ul-item1">
									<li><span>用户名</span><p data-bind="text:FAccount">&nbsp;</p></li>
									<li><span>注单编号</span><p data-bind="text:$source.Ordernumber">&nbsp;</p></li>
									<li><span>倍数模式</span><p><label data-bind="text:$source.Times">&nbsp;</label>倍，<label data-bind="text:$source.unitName">&nbsp;</label></p></li>
									<li><span>奖期</span><p data-bind="text:$source.NumberOfPeriod">&nbsp;</p></li>
									<li><span>投注注数</span><p><label data-bind="text:$source.BetNumber"></label>&nbsp;注</p> </li>
								</ul>
								<ul class="ul-item2">
									<li><span>游戏</span><p data-bind="text:gamename">&nbsp;</p></li>
									<li><span>投单时间</span><p data-bind="text:FCreateTime">&nbsp;</p></li>
									<li><span>注单奖金</span><p data-bind="text:FBettingBalance()-0>0?FBettingBalance():0">&nbsp;</p></li>
									<li><span>开奖内容</span><p data-bind="text:!OpenResult()?'--':OpenResult()">&nbsp;</p></li>
								</ul>
								<ul class="ul-item3">
									<li><span>玩法</span><p data-bind="text:$source.GamePlayName">&nbsp;</p></li>
									<li><span>总金额</span><p data-bind="text:FTotalAmount">&nbsp;</p></li>
									<li><span>动态返点</span><p data-bind="text:FTotalKickback">&nbsp;</p></li>
									<li><span>订单状态</span><p class="fc_green" data-bind="text:['可撤单','已撤单','已派奖','未中奖','已删除','未开奖','未结算','处理中','下注失败'][status()-0], css:['status-undo','status-hasundo','status-win','status-lose','status-delete','status-unlottery','status-lottery','status-undo','status-hasundo'][status()-0]">&nbsp;</p></li>
								</ul>
							</div>
							<div class="bet-con clear">
								<span>投注内容</span>
								<div class="bet-num" style="text-align:left" data-bind="text:shortContent+(isMoreContent?'... 【点击查看所有内容】':''),click:showMore"></div>
							</div>
						</div>
						<div class="acenter">可能中奖情况</div>
						<div class="table-box table-th">
							<table>
								<thead>
									<tr>
										<th width="100">奖级名称</th>
										<th>号码</th>
										<th width="100">倍数</th>
										<th width="100">奖级</th>
										<th width="100">奖金</th>
										<th width="100">中奖奖金</th>
									</tr>
								</thead>
							</table>
						</div>
						<div class="table-box table-box1">
							<table>
								<tbody data-bind="foreach:list">
									<tr>
										<td width="100" data-bind="text:FName">&nbsp;</td>
										<td data-bind="text:$parent.FContent().length>60?($parent.FContent().slice(0,60)+'...'):$parent.FContent">&nbsp;</td>
										<td width="100" data-bind="text:$parent.FTimes">&nbsp;</td>
										<td width="100" data-bind="text:FAwardLevel">1</td>
										<td width="100" data-bind="text:FODDS">&nbsp;</td>
										<td width="100" data-bind="text:+(FODDS() * $parent.FTimes()).toFixed(2)">&nbsp;</td>
									</tr>
								</tbody>
							</table>
						</div>
					</div>
				</div>
				<div class="popup-foot">
					<div class="clear">
						<!-- ko ifnot:$source.status()===0 -->
						<a href="javascript:;" class="btn Again " data-bind="click:resub" title="再次下注"></a>
						<!-- /ko -->
						<!-- ko if:$source.status()===0 -->
						<a href="" class="btn Revoke" data-bind="click:revoke" title="撤单"></a>
						<!-- /ko -->
						<a href="javascript:;" class="btn deter" title="确定" data-bind="click:close"></a>
						<a href="javascript:;" class="btn Continue" data-bind="css:isAppend?'':'disabled',click:viewAppendDetail" title="追号详单"></a>
						
					</div>
				</div>
			</div>
		</script>
		
		<script type="text/html" id="APPEND-DETAIL">
			<div class="popup">
				<div class="popup-body">
					<div class="bet-info">
						<div class="bet-top">
							<div class="clear">
								<ul class="ul-item1">
									<li><span>追号编号</span><p data-bind="text:FTrackNumber">&nbsp;</p></li>
									<li><span>游戏</span><p data-bind="text:FGameName">&nbsp;</p></li>
									<li><span>开始期号</span><p data-bind="text:FStartNumberOfPeriod">&nbsp;</p></li>
									<li><span>取消期数</span><p data-bind="text:FCancelCount">&nbsp;</p></li>
									<li><span>中奖期数</span><p data-bind="text:FWinCount">&nbsp;</p></li>
									<li><p style="width:40px;float:right" data-bind="text:FIsWinStop?'是':'否'">&nbsp;</p><span style="width:100px">中奖后停止追号</span></li>
								</ul>
								<ul class="ul-item2">
									<li><span>游戏用户</span><p data-bind="text:FAccount">&nbsp;</p></li>
									<li><span>玩法</span><p data-bind="text:FGamePlayName">&nbsp;</p></li>
									<li><span>追号期数</span><p data-bind="text:FPeriodsCount">&nbsp;</p></li>
									<li><span>追号总金额</span><p data-bind="text:FAmountSum">&nbsp;</p></li>
									<li><span>派奖总金额</span><p data-bind="text:FWinAmount">&nbsp;</p></li>
									<li><p style="width:40px;float:right" data-bind="text:FSkipStop?'是':'否'">&nbsp;</p><span style="width:100px">官方跳开即停</span></li>
								</ul>
								<ul class="ul-item3">
									<li><span>追号时间</span><p data-bind="text:FCreateTime">&nbsp;</p></li>
									<li><span>模式</span><p data-bind="text:['','元','角','分','厘'][FMoneyModel]">&nbsp;</p></li>
									<li><span>完成期数</span><p data-bind="text:FFinishPeriods">&nbsp;</p></li>
									<li><span>完成金额</span><p data-bind="text:FFinishAmount">&nbsp;</p></li>
									<li><span>取消金额</span><p data-bind="text:FCancelAmount">&nbsp;</p></li>
									<li><span>订单状态</span><p class="fc_green" data-bind="text:['进行中','已完成','已取消'][FStatus-1]">&nbsp;</p></li>
								</ul>
							</div>
							<div class="bet-con clear">
								<span>投注内容</span>
								<div class="bet-num" data-bind="text:FContent"></div>
							</div>
						</div>
						<div class="acenter">可能中奖情况</div>
						<div class="table-box" style="height:auto">
							<div style="padding-right:17px;">
								<table>
									<thead>
										<tr>
											<th><span class="checkbox" style="vertical-align:middle" data-bind="click:selectAll,css:selectAllStatus()?'checkbox-checked':''"></span>奖期</th>
											<th width="100">追号倍数</th>
											<th width="120">追号状态</th>
										</tr>
									</thead>
								</table>
							</div>
							<div style="height:154px;overflow:auto">
								<table>
									<tbody data-bind="foreach:list">
										<tr data-bind="click:$parent.select">
											<td data-bind="css:FStatus()-0===1?'':'no-checkbox'"><span class="checkbox" data-bind="text:FNumberOfPeriod,css:checked()?'checkbox-checked':''">&nbsp;</span></td>
											<td width="100" data-bind="text:FTimes">&nbsp;</td>
											<td width="120" data-bind="text:['进行中','已完成','已取消','已取消','失败'][FStatus()-1],css:['color-doing','color-complete','color-cancel','color-fail'][FStatus()-1]">&nbsp;</td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
					</div>
				</div>
				<div class="popup-foot" style="padding-top:10px;">
					<div class="clear">
						<a href="#" class="btn Revoke" data-bind="css:revokeUseful()?'':'disabled',click:revoke" title="撤单"></a>
						<a href="javascript:;" class="btn deter" title="确定" data-bind="click:close"></a>
					</div>
				</div>
			</div>
		</script>
		
		<script type="text/html" id="APPEND-TPL">
			<div class="popup">
				<div class="popup-body">
					<div class="bet-info">
						<div class="popup-tab">
							<div class="tab">
								
								<a href="#" data-bind="click:currentPlan.bind($data,2),css:currentPlan()===2?'active':''">同倍追号</a>
								<a href="#" data-bind="click:currentPlan.bind($data,3),css:currentPlan()===3?'active':''">翻倍追号</a>
							</div>
						</div>
						<div class="popup-form clear">
							
							<div class="fleft" data-bind="if:currentPlan()===2">
								追号计划：
								<span>起始倍数<input type="text" data-bind="textinput:singleTimes" /></span>
								<span>追号期数<input type="text" data-bind="textinput:singleCount" /></span>
							</div>
							<div class="fleft" data-bind="if:currentPlan()===3">
								追号计划：
								<span>每隔<input type="text" data-bind="textinput:doubleSection" style="width:30px" />期</span>
								<span>×<input type="text" data-bind="textinput:doubleTimes" style="width:30px" />倍</span>
								<span>追号期数<input type="text" data-bind="textinput:doubleCount" style="width:30px" /></span>
								<span>起始倍数<input type="text" data-bind="textinput:startNum" style="width:30px" /></span>
							</div>
							<div class="fright" style="padding-left:0">
								<label class="checkbox" for="CK-ROOT-stopAfterSkip" data-bind="css:root.stopAfterSkip()?'checkbox-checked':''" style="float:left;"><span style="float:left;">官方跳开即停</span><input type="checkbox" id="CK-ROOT-stopAfterSkip" data-bind="checked:root.stopAfterSkip" class="checkbox-hide" /></label>
								<label class="checkbox" for="CK-ROOT-stopAfterWin" data-bind="css:root.stopAfterWin()?'checkbox-checked':''" style="float:left;"><span style="float:left;">中奖后停止追号</span><input type="checkbox" id="CK-ROOT-stopAfterWin" data-bind="checked:root.stopAfterWin" class="checkbox-hide" /></label>
							</div>
						</div>
						<div class="popup-form clear">
							<div class="fleft">
								追号期数：
								<div class="select-box">
									<div><span data-bind="text:continueCountName">&nbsp;</span><i></i></div>
									<select class="select-list" data-bind="options:selectContinueCount,optionsText:'name',optionsValue:'value',value:continueCountValue"></select>
								</div>
								<span>追号总期数:<label class="fc_yellow" data-bind="text:totalPeriod">&nbsp;</label></span>
								<span>追号总金额:<label class="fc_yellow" data-bind="text:totalAmount">&nbsp;</label>元</span>
							</div>
							<div class="fright"><a href="#" class="btn generate" title="生成追号计划" data-bind="click:createAppendNumberPlan"></a></div>
						</div>
						<div class="table-box" style="height:auto;width:auto;padding-right:17px;">
							<table>
								<thead>
									<tr>
										<th>期号</th>
										<th width="140">倍数</th>
										<th width="180">当前投入</th>
										<th width="160">截止时间</th>
									</tr>
								</thead>
							</table>
						</div>
						<div class="table-box" style="overflow:auto;width:auto">
							<table>
								<tbody data-bind="foreach:list">
									<tr data-bind="click:$parent.select">
										<td><span class="checkbox" data-bind="text:NumberOfPeriod,css:multi()>0?'checkbox-checked':''">&nbsp;</span></td>
										<td width="140"><input type="text" data-bind="textinput:multi" />倍</td>
										<td width="180">&yen;<label data-bind="text:$parent.computedAmount($parent,multi)">&nbsp;</label></td>
										<td width="160" data-bind="text:CloseTime">&nbsp;</td>
									</tr>
								</tbody>
							</table>
						</div>
					</div>
				</div>
				<div class="popup-foot" style="padding-top:10px">
					<div class="clear">
						<a href="#" class="btn Empty" data-bind="click:reset" title="清空追号"></a>
						<a href="#" class="btn" data-bind="css:totalPeriod()>0?'bet':'DirectBet',click:submit"></a>
						<a href="#" class="btn Cancel" data-bind="click:cancel" title="取消"></a>
					</div>
				</div>
			</div>
		</script>

		<!--- 游戏记录详情 --->
		<div class="gamedetail" style="display:none;">
			<div class="detail">
				<span class="fc_grey">双击查看详情</span>
				<div class="clear">
					<span class="fleft">分分彩60[五星组选60]1506030421</span>
					<span class="fright"><font class="">ID:07118</font></span>
				</div>
				<div class="clear">
					<span>投注：1568|012357</span>
				</div>
				<div class="clear">
					<span class="fleft">开奖：79170</span>
					<span class="fright">（截止|<font class="fc_green">未中奖</font><font class="fc_pink">中奖</font>）</span>
				</div>
				<div class="clear">
					<span class="fleft">扣款：<font class="fc_green">-2400.00</font></span>
					<span class="fright">（2元*20倍*60注）</span>
				</div>
				<div class="clear">
					<span class="fleft">返点：<font class="fc_pink">+0.0000</font></span>
					<span class="fright">（扣款*0.0%）</span>
				</div>
				<div class="clear">
					<span class="fleft">以派奖金：－</span>
				</div>
				<div class="clear">
					<span class="fleft">玩家：我</span>
					<span class="fright">购买时间：2015-06-03 11:00:20</span>
				</div>
			</div>
		</div>
		<!--- 游戏记录详情 end --->
		<!--- 登录  --->
		<div class="login-wrap" style="display:none;">
			<a href="" class="login-close"></a>
			<div class="login-area">
				<div>
					<span>用户名</span>
					<input class="input_tip" type="text" value="" id="username" maxlength="32" />
				</div>
				<div>
					<span>密码</span>
					<input class="input_tip" type="password" value="" id="password" maxlength="20" />
				</div>
				<div>
					<span>验证码</span>
					<input type="text" value="" class="input_tip input_tip_45" id="validateCode" />
					<img id="verifyImg" tabindex="" src="{U('api/common/secode')}" alt="点击切换验证码" title="点击切换验证码" />
				</div>
				<div class="login-foot">
					<a href="">忘记密码</a>
					<a id="login" title="登入" href="javascript:void(0)" class="btn-login"></a>
				</div>
			</div>
		</div>
		<!--- 登录 end  --->

		<script type="text/javascript">
			//	当前彩票种类
			var _gameid = {$data['id']};
			//	最新期数
			var LatestPriodData = '{json_encode($nowperiod)}';
			//	历史开奖结果
			var ResultList = '{json_encode($lastperiod)}';
			//	单注基数
			var  Radix=2;
			//	今日未封盘期数
			var TodyUnClosePeriods= function(){return {json_encode($nextperiod)}};
			//	前20
			var topHistoryOrders = {json_encode($lastorder)};
			var GameCode = '{$data["ptid"]}', PAGE_START_TIME = new Date() - 0;
			var SignalrSite = "https://zycccppp.websocketcdn.com:8808/signalr";
			var showLongHu = 'True';
		</script>

		<!-- 玩法、玩法项树状结构树 -->
		<script src="{U('api/lottery/play2',['id'=>$data['id']])}"></script>
		<!-- 玩法数据 -->
		<script src="{U('api/lottery/play',['id'=>$data['id']])}"></script>
		<script src="static/js/flipclock.min.js"></script>
		<script src="static/js/core.min.js"></script>
		<script src="static/js/bet.js"></script>
		<script src="static/js/jquery.md5.min.js"></script>
		<script src="static/js/jquery.signalR-2.1.1.min.js"></script>
		<script>
			$().ready(function(){
				$('#sideMenu .currentClass').parent().parent().addClass('sidem_item_active');
			});
		</script>
	</body>
</html>